package schoolsource.util;

import java.util.ArrayList;

public class Randomizer {
	public static void main(String args[]) {
		String valids = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_";
		StringBuffer result = new StringBuffer();
		ArrayList a = new ArrayList(60);
		for (int i = 0; i < valids.length(); i++) {
			a.add(valids.substring(i, i+1));
		}

		while (a.size() != 0) {
			result.append((String) a.remove((int) (Math.random() * a.size())));
		}

//		System.out.println("result: " + result);
	}
}